﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XsqTech.SmartOA.Dtos.XSPDto.FromDto;
using XsqTech.SmartOA.Service.DTO;

namespace XsqTech.SmartOA.IService
{
    public interface IFormService
    {
        /// <summary>
        /// 表单添加
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        ResponseModel AddFrom(AddFromDto dto);
        /// <summary>
        /// 表单显示
        /// </summary>
        /// <param name="Name"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        ResponseModel FormQuery(string Name, int pageIndex, int pageSize);
        /// <summary>
        /// 表单删除（单删）
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ResponseModel FormDelete(string id);
        /// <summary>
        /// 表单删除（批删）
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        ResponseModel AllFormDelete(List<AddFromDto> dto);
        /// <summary>
        /// 表单反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ResponseModel FormQueryId(string id);
        /// <summary>
        /// 表单修改
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        ResponseModel UpdateFrom(AddFromDto dto);
    }
}
